<template>
  <div id="app">
    {{value}}
    <jsonEditor ref="jsonDataEditor"
                :value='value'
                @blur="jsonEditorBlurHandler"></jsonEditor>
  </div>
</template>

<script>
import jsonEditor from './components/jsonEditor'

export default {
  name: 'App',
  components: {
    jsonEditor
  },
  data() {
    return {
      value: '{"label":"test"}'
    }
  },
  methods: {
    jsonEditorBlurHandler(value) {
      this.value = value
      console.debug(value)
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
